// src/router/index.js
import { createRouter,createWebHistory  } from 'vue-router';
import jdy from '../pages/jdy.vue'
import ydb from '../pages/ydb.vue'

const routes = [
  { path: '/', component: jdy },
  { path: '/ydb', component: ydb },
];

const router = createRouter({
  history: createWebHistory(), // 使用 createWebHistory 来明确指定 history 模式  
  routes
}) 

export default router;
